<?php
namespace Wxapps\Controller;
use Think\Controller;
/**
 * author:huhaiqin
 * time:20200821 
 * desc:应用于小程序的相关接口
 */
class ApiController extends Controller{

    //根据key进行跳转
    public function jump_by_key(){
        $config = [];
        $key = I('key');
        if($key == ''){
            _apiReturn(0,'key不能为空');
        }
        $url = $config[$key];
        if(!$url){
            _apiReturn(0,'key值不存在~');
        }
        redirect($url);
    }
    
}